package cn.bonoon.controllers.question;

import cn.bonoon.kernel.annotations.Transform;
import cn.bonoon.kernel.annotations.TransformField;
import cn.bonoon.kernel.annotations.WriteModel;
import cn.bonoon.kernel.support.models.ObjectEditor;
import cn.bonoon.kernel.web.annotations.components.AsEditor;
import cn.bonoon.kernel.web.annotations.form.FormEditor;
import cn.bonoon.kernel.web.annotations.form.PropertyEditor;

@Transform
@FormEditor(value = 2, width = 250)
public class AskEditor extends ObjectEditor implements AsknDefine {

	/**
	 * 
	 */
	private static final long serialVersionUID = -9036888687702439257L;

	@PropertyEditor(value = 0, readonly = true)
	@TransformField(writable = WriteModel.NONE)
	private String contactName;
	
	@PropertyEditor(value = 1, readonly = true)
	@TransformField(writable = WriteModel.NONE)
	private String createAt;
	
	@PropertyEditor(value = 2, readonly = true)
	@TransformField(writable = WriteModel.NONE)
	private String contactPhone;
	
	@PropertyEditor(value = 3, readonly = true)
	@TransformField(writable = WriteModel.NONE)
	private String contactEmail;
	
	@PropertyEditor(value = 4, readonly = true, colspan = 1)
	@TransformField(writable = WriteModel.NONE)
	private String question;

	@PropertyEditor(value = 5, colspan = 1)
	@AsEditor
	private String answer;

	public String getContactName() {
		return contactName;
	}

	public void setContactName(String contactName) {
		this.contactName = contactName;
	}

	public String getCreateAt() {
		return createAt;
	}

	public void setCreateAt(String createAt) {
		this.createAt = createAt;
	}

	public String getContactPhone() {
		return contactPhone;
	}

	public void setContactPhone(String contactPhone) {
		this.contactPhone = contactPhone;
	}

	public String getContactEmail() {
		return contactEmail;
	}

	public void setContactEmail(String contactEmail) {
		this.contactEmail = contactEmail;
	}

	public String getQuestion() {
		return question;
	}

	public void setQuestion(String question) {
		this.question = question;
	}

	public String getAnswer() {
		return answer;
	}

	public void setAnswer(String answer) {
		this.answer = answer;
	}

}
